buttonbox: Remove redundant if statement
authorTimm Bäder <mail@baedert.org>
Wed, 26 Dec 2018 05:59:51 +0000 (06:59 +0100)
committerTimm Bäder <mail@baedert.org>
Thu, 3 Jan 2019 07:57:16 +0000 (08:57 +0100)
This used to do something in the past.

gtk/gtkbbox.c

index 4ea91a69e92efc1f6b57130f0371e20c55883cea..4addf8ae5add63d607ec2811e07f4a21e6853b27 100644 (file)
@@ -835,11 +835,6 @@ gtk_button_box_size_allocate (GtkWidget *widget,
     }
   total_size = primary_size + secondary_size;
 
-  if (orientation == GTK_ORIENTATION_HORIZONTAL)
-    width = width;
-  else
-    height = height;
-
   switch (priv->layout_style)
     {
       case GTK_BUTTONBOX_SPREAD: